package zero.mybatisplus.dynamictable.demo;

import lombok.Setter;

@Setter
public class EsQuery {
    //当前页
    private int current = 1;
    //显示多少条
    private int size = 10;

    public int getCurrent() {
        return current <= 0 ? 1 : current;
    }

    public int getSize() {
        return size<= 0 ? 10 : size;
    }
}
